/**
 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.portlet.donggoi.model;

import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.model.ModelWrapper;

import java.util.HashMap;
import java.util.Map;

/**
 * <p>
 * This class is a wrapper for {@link chiTietQTDongGoi}.
 * </p>
 *
 * @author    Thi
 * @see       chiTietQTDongGoi
 * @generated
 */
public class chiTietQTDongGoiWrapper implements chiTietQTDongGoi,
	ModelWrapper<chiTietQTDongGoi> {
	public chiTietQTDongGoiWrapper(chiTietQTDongGoi chiTietQTDongGoi) {
		_chiTietQTDongGoi = chiTietQTDongGoi;
	}

	public Class<?> getModelClass() {
		return chiTietQTDongGoi.class;
	}

	public String getModelClassName() {
		return chiTietQTDongGoi.class.getName();
	}

	public Map<String, Object> getModelAttributes() {
		Map<String, Object> attributes = new HashMap<String, Object>();

		attributes.put("maChiTietQT", getMaChiTietQT());
		attributes.put("tenCongDoan", getTenCongDoan());
		attributes.put("cachThucHien", getCachThucHien());
		attributes.put("kiemTraThucHien", getKiemTraThucHien());
		attributes.put("tanSuat", getTanSuat());
		attributes.put("maQuyTrinh", getMaQuyTrinh());

		return attributes;
	}

	public void setModelAttributes(Map<String, Object> attributes) {
		String maChiTietQT = (String)attributes.get("maChiTietQT");

		if (maChiTietQT != null) {
			setMaChiTietQT(maChiTietQT);
		}

		String tenCongDoan = (String)attributes.get("tenCongDoan");

		if (tenCongDoan != null) {
			setTenCongDoan(tenCongDoan);
		}

		String cachThucHien = (String)attributes.get("cachThucHien");

		if (cachThucHien != null) {
			setCachThucHien(cachThucHien);
		}

		String kiemTraThucHien = (String)attributes.get("kiemTraThucHien");

		if (kiemTraThucHien != null) {
			setKiemTraThucHien(kiemTraThucHien);
		}

		String tanSuat = (String)attributes.get("tanSuat");

		if (tanSuat != null) {
			setTanSuat(tanSuat);
		}

		String maQuyTrinh = (String)attributes.get("maQuyTrinh");

		if (maQuyTrinh != null) {
			setMaQuyTrinh(maQuyTrinh);
		}
	}

	/**
	* Returns the primary key of this chi tiet q t dong goi.
	*
	* @return the primary key of this chi tiet q t dong goi
	*/
	public java.lang.String getPrimaryKey() {
		return _chiTietQTDongGoi.getPrimaryKey();
	}

	/**
	* Sets the primary key of this chi tiet q t dong goi.
	*
	* @param primaryKey the primary key of this chi tiet q t dong goi
	*/
	public void setPrimaryKey(java.lang.String primaryKey) {
		_chiTietQTDongGoi.setPrimaryKey(primaryKey);
	}

	/**
	* Returns the ma chi tiet q t of this chi tiet q t dong goi.
	*
	* @return the ma chi tiet q t of this chi tiet q t dong goi
	*/
	public java.lang.String getMaChiTietQT() {
		return _chiTietQTDongGoi.getMaChiTietQT();
	}

	/**
	* Sets the ma chi tiet q t of this chi tiet q t dong goi.
	*
	* @param maChiTietQT the ma chi tiet q t of this chi tiet q t dong goi
	*/
	public void setMaChiTietQT(java.lang.String maChiTietQT) {
		_chiTietQTDongGoi.setMaChiTietQT(maChiTietQT);
	}

	/**
	* Returns the ten cong doan of this chi tiet q t dong goi.
	*
	* @return the ten cong doan of this chi tiet q t dong goi
	*/
	public java.lang.String getTenCongDoan() {
		return _chiTietQTDongGoi.getTenCongDoan();
	}

	/**
	* Sets the ten cong doan of this chi tiet q t dong goi.
	*
	* @param tenCongDoan the ten cong doan of this chi tiet q t dong goi
	*/
	public void setTenCongDoan(java.lang.String tenCongDoan) {
		_chiTietQTDongGoi.setTenCongDoan(tenCongDoan);
	}

	/**
	* Returns the cach thuc hien of this chi tiet q t dong goi.
	*
	* @return the cach thuc hien of this chi tiet q t dong goi
	*/
	public java.lang.String getCachThucHien() {
		return _chiTietQTDongGoi.getCachThucHien();
	}

	/**
	* Sets the cach thuc hien of this chi tiet q t dong goi.
	*
	* @param cachThucHien the cach thuc hien of this chi tiet q t dong goi
	*/
	public void setCachThucHien(java.lang.String cachThucHien) {
		_chiTietQTDongGoi.setCachThucHien(cachThucHien);
	}

	/**
	* Returns the kiem tra thuc hien of this chi tiet q t dong goi.
	*
	* @return the kiem tra thuc hien of this chi tiet q t dong goi
	*/
	public java.lang.String getKiemTraThucHien() {
		return _chiTietQTDongGoi.getKiemTraThucHien();
	}

	/**
	* Sets the kiem tra thuc hien of this chi tiet q t dong goi.
	*
	* @param kiemTraThucHien the kiem tra thuc hien of this chi tiet q t dong goi
	*/
	public void setKiemTraThucHien(java.lang.String kiemTraThucHien) {
		_chiTietQTDongGoi.setKiemTraThucHien(kiemTraThucHien);
	}

	/**
	* Returns the tan suat of this chi tiet q t dong goi.
	*
	* @return the tan suat of this chi tiet q t dong goi
	*/
	public java.lang.String getTanSuat() {
		return _chiTietQTDongGoi.getTanSuat();
	}

	/**
	* Sets the tan suat of this chi tiet q t dong goi.
	*
	* @param tanSuat the tan suat of this chi tiet q t dong goi
	*/
	public void setTanSuat(java.lang.String tanSuat) {
		_chiTietQTDongGoi.setTanSuat(tanSuat);
	}

	/**
	* Returns the ma quy trinh of this chi tiet q t dong goi.
	*
	* @return the ma quy trinh of this chi tiet q t dong goi
	*/
	public java.lang.String getMaQuyTrinh() {
		return _chiTietQTDongGoi.getMaQuyTrinh();
	}

	/**
	* Sets the ma quy trinh of this chi tiet q t dong goi.
	*
	* @param maQuyTrinh the ma quy trinh of this chi tiet q t dong goi
	*/
	public void setMaQuyTrinh(java.lang.String maQuyTrinh) {
		_chiTietQTDongGoi.setMaQuyTrinh(maQuyTrinh);
	}

	public boolean isNew() {
		return _chiTietQTDongGoi.isNew();
	}

	public void setNew(boolean n) {
		_chiTietQTDongGoi.setNew(n);
	}

	public boolean isCachedModel() {
		return _chiTietQTDongGoi.isCachedModel();
	}

	public void setCachedModel(boolean cachedModel) {
		_chiTietQTDongGoi.setCachedModel(cachedModel);
	}

	public boolean isEscapedModel() {
		return _chiTietQTDongGoi.isEscapedModel();
	}

	public java.io.Serializable getPrimaryKeyObj() {
		return _chiTietQTDongGoi.getPrimaryKeyObj();
	}

	public void setPrimaryKeyObj(java.io.Serializable primaryKeyObj) {
		_chiTietQTDongGoi.setPrimaryKeyObj(primaryKeyObj);
	}

	public com.liferay.portlet.expando.model.ExpandoBridge getExpandoBridge() {
		return _chiTietQTDongGoi.getExpandoBridge();
	}

	public void setExpandoBridgeAttributes(
		com.liferay.portal.service.ServiceContext serviceContext) {
		_chiTietQTDongGoi.setExpandoBridgeAttributes(serviceContext);
	}

	@Override
	public java.lang.Object clone() {
		return new chiTietQTDongGoiWrapper((chiTietQTDongGoi)_chiTietQTDongGoi.clone());
	}

	public int compareTo(
		com.portlet.donggoi.model.chiTietQTDongGoi chiTietQTDongGoi) {
		return _chiTietQTDongGoi.compareTo(chiTietQTDongGoi);
	}

	@Override
	public int hashCode() {
		return _chiTietQTDongGoi.hashCode();
	}

	public com.liferay.portal.model.CacheModel<com.portlet.donggoi.model.chiTietQTDongGoi> toCacheModel() {
		return _chiTietQTDongGoi.toCacheModel();
	}

	public com.portlet.donggoi.model.chiTietQTDongGoi toEscapedModel() {
		return new chiTietQTDongGoiWrapper(_chiTietQTDongGoi.toEscapedModel());
	}

	public com.portlet.donggoi.model.chiTietQTDongGoi toUnescapedModel() {
		return new chiTietQTDongGoiWrapper(_chiTietQTDongGoi.toUnescapedModel());
	}

	@Override
	public java.lang.String toString() {
		return _chiTietQTDongGoi.toString();
	}

	public java.lang.String toXmlString() {
		return _chiTietQTDongGoi.toXmlString();
	}

	public void persist()
		throws com.liferay.portal.kernel.exception.SystemException {
		_chiTietQTDongGoi.persist();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj) {
			return true;
		}

		if (!(obj instanceof chiTietQTDongGoiWrapper)) {
			return false;
		}

		chiTietQTDongGoiWrapper chiTietQTDongGoiWrapper = (chiTietQTDongGoiWrapper)obj;

		if (Validator.equals(_chiTietQTDongGoi,
					chiTietQTDongGoiWrapper._chiTietQTDongGoi)) {
			return true;
		}

		return false;
	}

	/**
	 * @deprecated Renamed to {@link #getWrappedModel}
	 */
	public chiTietQTDongGoi getWrappedchiTietQTDongGoi() {
		return _chiTietQTDongGoi;
	}

	public chiTietQTDongGoi getWrappedModel() {
		return _chiTietQTDongGoi;
	}

	public void resetOriginalValues() {
		_chiTietQTDongGoi.resetOriginalValues();
	}

	private chiTietQTDongGoi _chiTietQTDongGoi;
}